package com.cr.manager.domain;

import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cr.common.annotation.Excel;
import com.cr.common.core.domain.BaseEntity;

/**
 * 用户管理对象 cr_user
 * 
 * @author ruoyi
 * @date 2024-08-07
 */
@Data
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "用户ID", cellType = Excel.ColumnType.NUMERIC)
    private Integer id;

    /** 登录账号 */
    @Excel(name = "登录账号")
    private String username;

    /** 登录密码 */
    private String password;

    /** md5密码盐 */
    private String salt;

    /** 头像 */
    @Excel(name = "头像")
    private String avatar;

    /** 真实姓名 */
    @Excel(name = "真实姓名")
    private String realName;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String phone;

    /** 性别 */
    @Excel(name = "性别")
    private String sex;

    /** 电子邮箱 */
    @Excel(name = "电子邮箱")
    private String email;

    /** 角色 */
    @Excel(name = "角色")
    private String role;

    /** 当前状态 */
    @Excel(name = "当前状态")
    private String status;
    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("password", getPassword())
            .append("salt", getSalt())
            .append("avatar", getAvatar())
            .append("realName", getRealName())
            .append("phone", getPhone())
            .append("sex", getSex())
            .append("email", getEmail())
            .append("role", getRole())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
